<?php

namespace App\HttpController\Api\Admin\Access;

use App\HttpController\Api\Admin\AdminBase;
use App\Model\User\UserModel;
use EasySwoole\Http\Message\Status;

class Visit extends AdminBase
{

    public function index()
    {

        $data = [
            [
                'id' => 1,
                'device' => '闸机001',
                'name' => '刘德华',
                'phone' => '13562532562',
                'temperature' => '36.5',
                'temperature_status' => '1',
                'scan_face_at' => '2021-08-11 10:00:00',
                'cause' => '考察',
                'target_name' => '周润发',
                'target_phone' => '15625623562',
                'moment_picture' => '',
                'face_picture' => '',
                'score' => '1.5'
            ],
            [
                'id' => 2,
                'device' => '闸机001',
                'name' => '刘德华',
                'phone' => '13562532562',
                'temperature' => '36.5',
                'temperature_status' => '1',
                'scan_face_at' => '2021-08-11 10:00:00',
                'cause' => '考察',
                'target_name' => '周润发',
                'target_phone' => '15625623562',
                'moment_picture' => '',
                'face_picture' => '',
                'score' => '1.5'
            ],
            [
                'id' => 3,
                'device' => '闸机001',
                'name' => '刘德华',
                'phone' => '13562532562',
                'temperature' => '36.5',
                'temperature_status' => '1',
                'scan_face_at' => '2021-08-11 10:00:00',
                'cause' => '考察',
                'target_name' => '周润发',
                'target_phone' => '15625623562',
                'moment_picture' => '',
                'face_picture' => '',
                'score' => '1.5'
            ],
            [
                'id' => 4,
                'device' => '闸机001',
                'name' => '刘德华',
                'phone' => '13562532562',
                'temperature' => '36.5',
                'temperature_status' => '1',
                'scan_face_at' => '2021-08-11 10:00:00',
                'cause' => '考察',
                'target_name' => '周润发',
                'target_phone' => '15625623562',
                'moment_picture' => '',
                'face_picture' => '',
                'score' => '1.5'
            ],
            [
                'id' => 5,
                'device' => '闸机001',
                'name' => '刘德华',
                'phone' => '13562532562',
                'temperature' => '36.5',
                'temperature_status' => '1',
                'scan_face_at' => '2021-08-11 10:00:00',
                'cause' => '考察',
                'target_name' => '周润发',
                'target_phone' => '15625623562',
                'moment_picture' => '',
                'face_picture' => '',
                'score' => '1.5'
            ],
            [
                'id' => 6,
                'device' => '闸机001',
                'name' => '刘德华',
                'phone' => '13562532562',
                'temperature' => '36.5',
                'temperature_status' => '1',
                'scan_face_at' => '2021-08-11 10:00:00',
                'cause' => '考察',
                'target_name' => '周润发',
                'target_phone' => '15625623562',
                'moment_picture' => '',
                'face_picture' => '',
                'score' => '1.5'
            ]
        ];

        $this->toJson(0, $data, 'ok');

    }

}